package com.lhk.appframework.ui.activity;

import android.os.Bundle;

import com.lhk.appframework.MyApplication;
import com.lhk.appframework.R;
import com.lhk.appframework.manager.ManagerSharedPreferences;
import com.lhk.appframework.ui.BaseActivity;
import com.lhk.appframework.utils.ui.UtilsUI;

public class GuidActivity extends BaseActivity {

	@Override
	protected void onCreate(Bundle bundle) {
		super.onCreate(bundle);
		
		
		getWindow().getDecorView().postDelayed(new Runnable() {
			
			@Override
			public void run() {
				MyApplication.getInstance().getManagerSP().put(GuidActivity.this, ManagerSharedPreferences.SPNAME, ManagerSharedPreferences.SPNAME_KEY_ISFIRSTUSE, false);
				go2HomePage(HomeActivity.class);
				finish();
			}
		}, 2000);
		
		
	}
	
	@Override
	public void setLayout() {
		setContentView(R.layout.activity_guid);
	}

	
	private void go2HomePage(Class classType){
		UtilsUI.go2Activity(this, classType);
	}
}
